package com.gmzg.gmzgnews.news.network;

import com.gmzg.gmzgnews.news.interfaces.HeadGetData;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Jasen on 2016 2016/11/2.11:35
 * Email:1142803753@qq.com
 * weixin: aserbao
 */

public class RetrofitHelper {
    private static final String APP_HEAD_URL = "http://www.tngou.net";

    public static HeadGetData getHeadDataApi(){
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl(APP_HEAD_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        return retrofit.create(HeadGetData.class);
    }
}
